﻿<UserControl x:Class="TestSilverlightApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="500" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" Background="#FFFFFCF2">

	<Grid x:Name="LayoutRoot" Background="White" Margin="10">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition />
		</Grid.RowDefinitions>
		<TextBlock Text="Welcome to the Test App" Margin="2,10,0,10"/>
		<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="2">
			<Button x:Name="btnLogin" Content="Login" Height="24" Width="75" Click="btnLogin_Click" Margin="2"/>
			<Button x:Name="btnLogout" Content="Logout" Height="24" Width="75" Click="btnLogout_Click" Margin="2"/>
			<Button x:Name="btnTestMethod" Content="Test Service" Height="24" Width="100" Click="Button_Click" Margin="2"/>
			<Button x:Name="btnTestAuthMethod" Content="Test Authorized Method" Height="24" Width="150" Margin="2" Click="btnTestAuthMethod_Click" />
			<Button x:Name="btnClearGrid" Content="Clear List" Height="24" Margin="2" Click="btnClearGrid_Click" />
		</StackPanel>
		<StackPanel Grid.Row="2" Orientation="Horizontal" >
			<TextBlock Text="Average: " />
			<TextBlock Text="0" Width="75" x:Name="txtAverage"/>
			<TextBlock Text="Record: " />
			<TextBlock Text="{Binding ElementName=dataGrid1, Path=ItemsSource.Count}" Width="75"/>
		</StackPanel>
		<sdk:DataGrid Grid.Row="3" Name="dataGrid1" IsReadOnly="True"/>
	</Grid>
</UserControl>